import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-time-control-search',
  templateUrl: './time-control-search.component.html',
  styleUrls: ['./time-control-search.component.css']
})
export class TimeControlSearchComponent implements OnInit {
	@Input() public startTime:string;
  @Input() public endTime:string;
  @Output() time=new EventEmitter<string>()
  constructor() { }
  ngOnInit() {
  }
  public changeTime(startTime:string){
  	//this.time.emit(start, end);
  	this.time.emit(startTime);
  }
}
